package org.deng.learn.jedis;

import redis.clients.jedis.Jedis;

/**
 * @author 邓力宾
 * @Desc
 * @since 2020/6/9 下午4:06
 */
public class Main {
    private static final String REDIS_SERVER_URL = "127.0.0.1";
    private static final int REDIS_SERVER_PORT = 6379;
    public static void main(String[] args) {
        Jedis jedis = new Jedis(REDIS_SERVER_URL, REDIS_SERVER_PORT);
        jedis.set("name", "邓力宾");
        String name = jedis.get("name");
        System.out.println("name:"+name);
    }
}
